home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / Drtf / DPICTHandler.h < prev    next >
Text File  |  1996-07-05  |  776b  |  33 lines

  1. // DPICTHandler.h
  2. // d.g.gilbert
  3.  
  4.  
  5.  
  6. #ifndef _DPICTHANDLER_
  7. #define _DPICTHANDLER_
  8.  
  9. #include "DRichHandler.h"
  10.  
  11.  
  12. class DPICTHandler : public DRichHandler
  13. {
  14. public:
  15.     enum  {
  16.         kPICTformat = kTextformat + 3,
  17.         kAfterHeader = kAtEnd + 1
  18.         };
  19.         
  20.     DPICTHandler(DRichView* itsDoc, DFile* savefile);
  21.     virtual char* IsRich(char* buf, ulong buflen = 0);
  22.     virtual DRichprocess* NewProcessor( DFile* itsFile, Nlm_MonitorPtr progress);
  23.     virtual Boolean ProcessData( char* cbeg, char* cend, Boolean endOfData, 
  24.                     ulong& dataRemaining);
  25.     virtual void InstallInStyle( DRichView* theDoc, DRichStyle* theStyle);
  26.     virtual short Format() { return kPICTformat; }
  27.     static void PICTFileSigs( char*& suffix, char*& type, char*& sire) 
  28.         { suffix= ".pict"; type= "PICT"; sire= "ttxt"; }
  29. };
  30.  
  31.  
  32. #endif
  33.